from enum import Enum, unique


@unique
class QuestionPromptsInfoKey(str, Enum):
    QUESTION_ID = "question_id"
    QUESTION_TYPE = "question_type"
    QUESTION_BAN = "question_ban"


@unique
class MongoOpType(str, Enum):
    INSERT = "insert"
    UPDATE = "update"
    DELETE = "delete"
    SELECT = "select"


@unique
class PromptKey(str, Enum):
    TASK = "任务"
    TEXT = "文本"
    PROCESS = "操作步骤"
    FORMAT = "格式和字段的具体要求"
    TEMPLATE = "试题模板格式"


pro_dic = {
    PromptKey.TASK.value: "请输入任务描述",
    PromptKey.TEXT: "请输入题目内容",
    PromptKey.PROCESS: "请输入题目操作步骤",
    PromptKey.FORMAT: "请输入题目格式和字段的具体要求",
    PromptKey.TEMPLATE: "请输入试题模板格式"
}
print("文本" == PromptKey.TEXT)
print(pro_dic)
# print(type(QuestionPromptsInfoKey.QUESTION_BAN))
# print(QuestionPromptsInfoKey.QUESTION_BAN)
# print(QuestionPromptsInfoKey.QUESTION_BAN.name)
# print(QuestionPromptsInfoKey.QUESTION_BAN.value)
#
#
# def test(type):
#     match type:
#         case MongoOpType.INSERT:
#             1 / 0,
#         case MongoOpType.UPDATE:
#             "2",
#         case MongoOpType.DELETE:
#             "3",
#         case MongoOpType.SELECT:
#             "4"
#
#
# test(MongoOpType.SELECT)
